package com.example.group_20.service;

import com.example.group_20.entity.Teachers;
import com.example.group_20.utils.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * @author: 栋
 * @data: 2023/8/12
 * @descriptions:
 */
public interface TeacherService {
    public Result login(String t_id,String pwd);

    public Result getInfor(String token);

    public Result logOut();

    public Result showInfor(String token);

    public Result updateInfor(Teachers teachers);

    public Result updatePwd(Teachers teachers,String newPwd);

    public Result showFile(String token);
    public Result beforCorrectFile(String f_id);

    public Result correctFile(Map<String,Object>mp);

    public Result showLogInfor(String token);

    public Result sendMsg(Map<String,Object>mp);

    public Result showSendMsg(String token);

    public Result showReciveMsg(String token);

    public Result reply(Map<String,Object> mp);

    public Result downloadFile(String file_id, HttpServletRequest req, HttpServletResponse resp) throws IOException;

    public Result selectLeader(Map<String,Object> mp);
}
